(require-extension eggdoc)

(define doc
  `((eggdoc:begin
     (name "scsh-regexp")
     (description
      "Emulates SCSH regular expression API")
     (author
      (a (@ (href "http://alumnus.caltech.edu/~muresan/")) "Dan Muresan"))
     (history
      (version "0.1" "Initial implementation")
      (version "0.2" "Fixes, regexp API support complete except manipulation functions")
      )
     (download "scsh-regexp.egg")
     (documentation
      (p "Olin Shivers proposed a \"100% solution\" for working with " (a (@ (href "http://www-static.cc.gatech.edu/~shivers/papers/sre.txt")) "regular expressions in Scheme") ". His solution was only implemented in SCSH. The scsh-regexp egg is a port of Olin's SRE package to other Schemes (currently Chicken and SISC).")
      (p "The SRE package has two main features: the " (a (@ (href "http://www.scsh.net/docu/html/man-Z-H-7.html#node_sec_6.1")) "SRE notation") " (a Scheme s-expression representation of regular expression strings) and a " (a (@ (href "http://www.scsh.net/docu/html/man-Z-H-7.html#node_sec_6.4")) "regexp API") ". scsh-regexp does not yet support the SRE notation, but implements most of the regexp API (specifically, " (kbd "posix-string->regexp") ", " (kbd "regexp?") ", " (kbd "regexp-search") ", " (kbd "match:start") ", " (kbd "match:end") ", " (kbd "match:count") ", " (kbd "match:substring") ", " (kbd "match:prefix") ", " (kbd "match:suffix") ", " (kbd "match:regexp-for-each") ", " (kbd "regexp-substitute") ", " (kbd "regexp-substitute/global") ", " (kbd "let-match") ", " (kbd "if-match") ")")
      (p "The " (a (@ (href "http://www.omnigia.com/scheme/scsh-regexp")) "project homepage") " contains more details and examples, including information on how to use the package in other Schemes."
      )
      )
     (license "
Copyright (C) 2006 Dan Muresan (muresan at stanfordalumni dot org)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details."
) )))

(with-output-to-file "scsh-regexp.html" (cut eggdoc->html doc))
